﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRM.DAL.DAO;
using HRM.DBGatway;

namespace HRM.BLL
{
    public class PunishedProcedureManager
    {
        PunishedProcedureGatway gateway =new PunishedProcedureGatway();
        public bool SaveProcedure(PunishedProcedure procedure)
        {
            if(gateway.HasThisProcedureExists(procedure))
            {
                return false;
            }
            else
            {
                return gateway.SaveProcedure(procedure);
            }
        }
        public List<PunishedProcedure> GetAllProcedure()
        {
            return gateway.GetAllProcedure();
        } 
    }
}